<template>
	<view class="ljapp article">
		<view class="content">
			<rich-text :nodes="content"></rich-text>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				content: "",
			}
		},
		onLoad(options) {
			if(options.type == 'true'){
				this.$Http({
					url: 'consultationConsult',
				}).then(res => {
					this.loading = false
					if (res.code == 1) {
						this.content = res.data.platformprotocol
					}else{
						this.$u.toast(res.msg)
					}
				});
			}else{
				this.init();
			}
			
		},
		methods: {
			//详情
			init() {
				this.$Http({
					url: 'getPlatformProtocol',
				}).then(res => {
					this.loading = false
					if (res.code == 1) {
						this.content = res.data
					}else{
						this.$u.toast(res.msg)
					}
				});
			},
		}
	}
</script>

<style lang="less">
	page{
		background-color: #fff;
	}
	.content{
		padding: 0 30rpx 30rpx;
	}
	
	/deep/uni-rich-text{
		img{
			max-width: 100%;
			display: block;
		}
	}
</style>
